package com.neuedu.helloworld.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/readConfig")
public class ReadConfigFileController {

    @Value("${App.version}")
    private String version;

    @Value("${App.author}")
    private String author;



    @RequestMapping("/info")
    public String info(){
        return "当前APP信息,author :"+author +" , version : "+version;
    }




}
